package com.pharmacy.pharmacy.domain;


import java.util.Date;

/**
 * 【】对象 order
 * 
 * @author
 * @date 2025-05-08
 */
public class Order 
{

    /** 主键，自增ID */
    private Long id;

    /** 用户ID */
    private Long userId;

    /** 订单状态（0待支付，1已支付，2已发货，3已完成） */
    private Long orderStatus;

    /** 总金额（单位：分） */
    private Long totalAmount;


   private Date createTime;

    public Order() {
    }

    public Order(Long id, Long userId, Long orderStatus, Long totalAmount, Date createTime) {
        this.id = id;
        this.userId = userId;
        this.orderStatus = orderStatus;
        this.totalAmount = totalAmount;
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return userId
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 设置
     * @param userId
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 获取
     * @return orderStatus
     */
    public Long getOrderStatus() {
        return orderStatus;
    }

    /**
     * 设置
     * @param orderStatus
     */
    public void setOrderStatus(Long orderStatus) {
        this.orderStatus = orderStatus;
    }

    /**
     * 获取
     * @return totalAmount
     */
    public Long getTotalAmount() {
        return totalAmount;
    }

    /**
     * 设置
     * @param totalAmount
     */
    public void setTotalAmount(Long totalAmount) {
        this.totalAmount = totalAmount;
    }

    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String toString() {
        return "Order{id = " + id + ", userId = " + userId + ", orderStatus = " + orderStatus + ", totalAmount = " + totalAmount + ", createTime = " + createTime + "}";
    }
}
